home *** CD-ROM | disk | FTP | other *** search
- /*
- Copyright © 1994 Demos, inc.
- Written by: Dmitry Boldyrev
- */
-
- #ifndef __LZSSLib__
- #define __LZSSLib__
-
- /* structure of stored data in a compressed resource:
-
- ---------------------------- Type ----- Byte(s) ---
- • Compressed? Boolean 1
- • Resource Type ResType 4
- • Original size Size 4
- ---------------------------------------------------
- total: 8 bytes header
-
- Compression methods available are:
- */
-
- // “CompressResource” takes two arguments, srcHandle which can be obtained
- // from GetResource(), and rType is the original resource type
- Handle CompressResource(Handle srcHandle, ResType rType, ProcPtr ProgressProc);
-
- // “GetCResource” takes two arguments rType and rID (acts just like GetResource)
- Handle GetCResource(ResType rType, short rID);
-
- // “GetCResource” takes no arguments and returns the Compress type error
- // if no error occured it returns noErr code.
- OSErr CompressError();
-
- #endif